import random

health = 12

print("你找到了一些魔法药水，有：绿色、粉色、紫色......")
potion = input("你想使用那种药水？")
# 每种药水都会治愈或者伤害一定量的健康值
health_change = 0
if potion == "紫色":
    health_change = 10
elif potion == "粉色":
    health_change = 4
elif potion == "绿色":
    health_change = -2

health += health_change

# 玩家在穿越熔岩时受到伤害
health_change = random.randint (1, 10)
print ("哎哟！刚进山洞，熔岩就烫伤了你的脚，掉了", health_change, "点健康值")
health -= health_change

potion = input("你想使用那种药水？")
# 每种药水都会治愈或者伤害一定量的健康值
health_change = 0
if potion == "紫色":
    health_change = 10
elif potion == "粉色":
    health_change = 4
elif potion == "绿色":
    health_change = -2

health += health_change

print("你当前还有", health, "点健康值")